package com.example.demo.adapter;

import com.example.demo.R;
import com.example.demo.bean.MenuBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;


public class MenuAdapter extends BaseQuickAdapter<MenuBean, BaseViewHolder> {
    public MenuAdapter() {
        super(R.layout.item_menu);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, MenuBean menuBean) {
        baseViewHolder.setText(R.id.tv_menu_title, menuBean.getTitle());
    }
}
